package com.henghai.zhenxuan.ui.page.adapter;

import android.content.Context;

import androidx.recyclerview.widget.RecyclerView;

import com.henghai.zhenxuan.data.bean.IssueTaskBean;
import com.henghai.zhenxuan.databinding.AdapterTaskItemBinding;
import com.kunminx.binding_recyclerview.adapter.SimpleDataBindingAdapter;

public class TaskListAdapter extends SimpleDataBindingAdapter<IssueTaskBean.RowsBean, AdapterTaskItemBinding> {

    public TaskListAdapter(Context context) {
        super(context, com.henghai.zhenxuan.R.layout.adapter_task_item, DiffUtils.getInstance().getTaskItemCallback());
    }

    @Override
    protected void onBindItem(AdapterTaskItemBinding adapterTaskItemBinding, IssueTaskBean.RowsBean rowsBean, RecyclerView.ViewHolder viewHolder) {
        adapterTaskItemBinding.setTask(rowsBean);
    }
}
